package com.gisuni.sddc.platformManager.model;

import java.util.Date;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;




/**
 * ModuleInfoId entity. @author MyEclipse Persistence Tools
 */
@Table(value = "SDDCGISPLATFORM.MODULE_INFO")
public class ModuleInfo implements java.io.Serializable {

	// Fields

	@Column(value = "ID")
	@Name
	private String id;
	
	@Column(value = "MODEL_NAME")

	private String modelName;
	
	@Column(value = "MODEL_TYPE" )

	private String modelType;
	
	@Column(value = "MODEL_INDEX" )

	private Long modelIndex;
	
	@Column(value = "PARENT_ID" )

	private String parentId;
	
	@Column(value="PARAMETER_ID_CONTAIN")
	private String Parameters;
	
	@Column(value = "CREATE_TIME")

	private Date createTime;
	
	@Column(value = "UPDATE_TIME")
	private Date updateTime;

	@Column(value = "DESCRIPTION")
	private String description;
	// Constructors

	/** default constructor */
	public ModuleInfo() {
	}

	/** minimal constructor */
	public ModuleInfo(String id, String modelName) {
		this.id = id;
		this.modelName = modelName;
	}

	
	
	/** full constructor */
	public ModuleInfo(String id, String modelName, String modelType,
			Long modelIndex, String parentId, Date createTime,
			Date updateTime) {
		this.id = id;
		this.modelName = modelName;
		this.modelType = modelType;
		this.modelIndex = modelIndex;
		this.parentId = parentId;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors

	
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getModelName() {
		return this.modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public String getParameters() {
		return Parameters;
	}

	public void setParameters(String parameters) {
		Parameters = parameters;
	}
	
	public String getModelType() {
		return this.modelType;
	}

	public void setModelType(String modelType) {
		this.modelType = modelType;
	}
	
	public Long getModelIndex() {
		return this.modelIndex;
	}

	public void setModelIndex(Long modelIndex) {
		this.modelIndex = modelIndex;
	}

	public String getParentId() {
		return this.parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ModuleInfo))
			return false;
		ModuleInfo castOther = (ModuleInfo) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getModelName() == castOther.getModelName()) || (this
						.getModelName() != null
						&& castOther.getModelName() != null && this
						.getModelName().equals(castOther.getModelName())))
				&& ((this.getModelType() == castOther.getModelType()) || (this
						.getModelType() != null
						&& castOther.getModelType() != null && this
						.getModelType().equals(castOther.getModelType())))
				&& ((this.getModelIndex() == castOther.getModelIndex()) || (this
						.getModelIndex() != null
						&& castOther.getModelIndex() != null && this
						.getModelIndex().equals(castOther.getModelIndex())))
				&& ((this.getParentId() == castOther.getParentId()) || (this
						.getParentId() != null
						&& castOther.getParentId() != null && this
						.getParentId().equals(castOther.getParentId())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())))
				&& ((this.getUpdateTime() == castOther.getUpdateTime()) || (this
						.getUpdateTime() != null
						&& castOther.getUpdateTime() != null && this
						.getUpdateTime().equals(castOther.getUpdateTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getModelName() == null ? 0 : this.getModelName().hashCode());
		result = 37 * result
				+ (getModelType() == null ? 0 : this.getModelType().hashCode());
		result = 37
				* result
				+ (getModelIndex() == null ? 0 : this.getModelIndex()
						.hashCode());
		result = 37 * result
				+ (getParentId() == null ? 0 : this.getParentId().hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		result = 37
				* result
				+ (getUpdateTime() == null ? 0 : this.getUpdateTime()
						.hashCode());
		return result;
	}

}